Conversation
Adds a global alignment to the grid container, and individual alignments to the child columns # Conflicts: # blocks/layout-grid/editor.scss # blocks/layout-grid/src/grid/edit.js # blocks/layout-grid/style.scss
It’s 2020
Each column now stores the settings, not the parent container. This allows us to reduce the CSS size, and overall complexity
|
@jasmussen this is still a work in progress and doesn't immediately need any attention, but just putting it on your radar. |
|
This is a big one. I've received your ping, and it's on my ToDo, and I'll absolutely get to it. But I want to do it right. |
|
I tested this today, and I must say, the amount of red code here is impressive. The block itself is also working really well. In fact, it seems to be working perfectly, except for a few issues that I believe are not related to this branch specifically, but rather the block itself. But perhaps simply due to testing this heavily, they appeared. The bad part is, I can no longer reproduce the issues, either in master or this branch. But nevertheless, I did encounter an issue where I switched from 3 to 4 columns, then pressed Undo, and the layout was messed up rather badly. Behold these values: I don't know if I didn't properly clear cache, but I could not recreate the conditions to cause this. But it did involve undo/redo and switching the amount of columns. But in every case, even when the column values got broken for inexplicable reasons, the CSS seemed completely correct, insofar as the frontend always matched the backend. What is the next step to moving forward with this one? Do we need some Takashi testing? Did you need CSS input? |

This is a big refactor that does several things:
spanandoffsettospanandstart- columns are absolutely positioned instead of being relative to the previous column. The user continues to see things in terms ofoffsetspanandstartattributes instead of storing everything in the grid containerThis results in many benefits:
startandoffsetall the timeOther changes:
Upcoming changes:
front.cssandstyle.csstogether. I know we split them apart, but it makes integration difficult, and it would be better merged